<?php
/**
 * 描述：会员管理中心母版页。
 */
abstract class Exec_MC_Master extends Exec_Account_Lock
{    
    public function MasterPage_Display($subpageContent)
    {
        #获取数据
        $username=Account::Session('Username');
        $companyName=NULL;
        $linkMan=NULL;
        $user=new Account($username);
        {
            $companyName=$user->Data['CompanyName'];
            $linkMan=$user->Data['Linkman'];
        }
        $user=NULL;
        $date=date('Y年m月d日');
        $week_enum=array('日','一','二','三','四','五','六');
        $week='星期'.$week_enum[date('w')];

        #渲染模板
        View::Assign('Linkman',$linkMan);
        View::Assign('CompanyName',$companyName);
        View::Assign('SubpageContent',$subpageContent);
        View::Assign('Date',$date);
        View::Assign('Week',$week);
        View::Display('mc/master.tpl');
    }
}
?>